fixing ip in scp_action in directory_copy