Use stream-line-wrapper, refactoring code.
Fix directory cleaning.
Remove gift and fix fetch method.
Wrap ssh command with quotes.
Fix clean, remove only.