Changed write file to use grunt version