Mac os sed version causing errors

 Mac Os does not use the gnu version of sed resulting in
 errors when lables are defined after use.

* Update to Makefile version extraction sed script to be
  crossplatform compatible
* Added grunt-cli to requirements and updated path in make
  to use local version instead of global.