checking exit status of parts of script
fixed bug with scp (copy reports, copy logs)