Updating to re-use functionality from the grunt-lib-amd project