Revert "Using rsync gem"

This reverts commit 9456c590f72d2d6fb151b096cd48231b5c55322c.
Fixing single quote escaping issues