Fixed two lines which break the task in node v0.8.17 win

The modified code is related to the filesystem walk.
Could not verify it on Mac; on Windows, it fixes grunt-ftp-deploy functionality.