Support for options.cwd

Removed ``options.filename = path.basename(file.path);``, use ``options.cwd`` instead for a similar effect.