Ensure relative loader baseUrl is correctly handled

Fixes #108.
Use the correct cwd in the Grunt task

Fixes #110.