fixed bug where extension may have slash in it denoting a file path