added error handling

Added error handling. If a working directory already exists, move the original working directory to old_${name} and the LHE file to old_output.lhe. If the scripts fails to retrieve data card or tar ball or fails to compile pwhg_main, an error message is printed and the job exits.