Ensure that these files always get picked up during "make dist", not
only when we have Fortran support available.
Fixes #3442: ensure that we don't call "basename" on an empty string.

cmr:v1.7