Use FilePath.exist instead of Posix.fileExist
Catch silly error about inappropriate type in Posix.fileExist
Fix warning in GHC >7.8