removed filetype check as it doesn't work on windows