Adding Error Checking and fixed permission issue

Adding Error Checking and fixed permission issue.

now on the main system call we will bail if things don't work correctly.  Before this would just pull up the last previous results from the workspace.   We should probably remove all those as part of a cleanup phase.

Also fixed permission issue with scommand by adding +x