Condense the validation of --target

This refactors the code needed to validate that the ` --target` passed, if any, is a valid folder.

Just a personal thing, was just bugged by way we had to declare our tasks now and all the additional code needed in the Gruntfile.  This seems a bit simpler and should achieve the same thing.