fix getIdentifier to work with paths that don't have file extensions