Squashed commit of the following:

commit c315d74c299896b035c85bf7e7d4bac92e3c8567
Author: Vincent Hou <houqi.cn@gmail.com>
Date:   Mon Sep 23 18:25:05 2013 +0800

    replace '\n' with /\r?\n/ to make the task work fine on windows platform.

Closes gh-67.