properly detect file names for interpolation