QENG-1257 scp_to add error result

Before, the scp_ methods would return 0 as the result exit code even when it failed.  This fixes that, returning 0 for success and 1 otherwise.