Rewrite :pull rake task to work on all platforms