fix dangerous bug in run_vasp. Make it raise an error