Fix bug where incorrect function is used to determine existance of file

filereadable() is used instead to find.