added if statement to modify ssh and scp commands, issue #30