Make existsSync work with older versions of Node