Add error handling

Added error handling. If the work directory exists, the script moves the old directory to old_${name}$ and the old LHE file to old_output.lhe. If the input data card or the data card is not found or if the make file fails to compile the executable pwhg_main, the script prints out error message and exit the program.