Fix an issue where Node v6's path.dirname throws on `undefined`.
Fix an issue where Node v6's path.dirname throws on `undefined`.

This is mostly an issue as browser-resolve assumes a `filename` option.

markfinger/unfort,markfinger/alas