Support non latin localized remote shells.

Made rsync detection regex strict again, but we now force the language to english so the output will always be the same.
Fixes issue #7 for all users.
Run pre and post commands in non-interactive shell.
Remove trailing newline from pre and post commands.