now exiting if an external command fails 

now exiting if an external command fails instead of e.g. continuing running on missing/outdated files. 

Also checking for existence of specified datacard file