printing failure messages in red
changed scp to copy directories if specified
fixed broken unit tests