Filter dyn_local_file_for for the same file extension as the original.
Merge pull request #75 from mikesten/return_correct_filetypes

Filter dyn_local_file_for for the same file extension as the original.