Fixes grunt's stdin for makeref
Merge pull request #1170 from yurydelendik/issue1157

Fixes grunt's stdin for makeref