Updates for MACS2 

to allow better handling of exit codes and to wrap commandline options in quotes (fixes e.g., handling of directories containing spaces).