Don't pass undefined to path.resolve

  - Fixes bug on Node 0.10.0