fix error on non-recursive scp copy; fix recursive scp copy