FIX: more reasonable file name handling

The expansion is now smarter and hopefully meets the POLS
Merge pull request #467 from dengemann/bti_fname_check

FIX: more reasonable file name handling