ipmagic: add assertBool for conf keyval pairs
ipmagic: add default preBashCommand and add ignorePreBashCommand

also move preBashCommand inside of bash exec, before command