updating to use the process cwd if the cwd is not set and adding tests to the Gruntfile.js that use the custom helpers