Replaced basePath option with __dirname