Fix transaction parsing

Merge in code from msc_cron.sh, and properly set the working directories for the calls to the mastercoin-tools.