fix grunt various issues when running on cloud host.