prevent getFile() from returning the home page when the dir doesn't exist