Better handling of shell commands for UpdateModule