run-joshua.sh script now takes -m option