Maxima Function
filename_merge (path, filename)
Constructs a modified path from path and filename.
If the final component of path is of the form ###.something
,
the component is replaced with filename.something
.
Otherwise, the final component is simply replaced by filename.