Fix single file builds.

The recent changes broke single output file builds.

The "data" object contains a "path" property containing the full path of the output file (already normalised) for both single and multiple files. Having this said, there's no need to check for `config.dir`.
Also the `mkdirSync` is unnecessary because requirejs already creates the output directory.