Add a private build task that deploy tasks can depend on
Abstract out rsync usage into function