Fixed getting the file name: don't try to remove the type if there is none
Merge pull request #3 from egonw/bugfix/myexperiment

Fixed getting the file name: don't try to remove the type if there is none