Fixed RunCastep to use last non empty line of castep file to determine if it finished successfully.