Mac OSX fs.exists issue