fixed exists and existsSync warnings