Fixed the task when no cwd is used

If no cwd is present, `undefined` is appended to the path which breaks the task
Merge pull request #15 from LaurentGoderre/master

Fixed the task when no cwd is used