added -m switch

`-m true` puts moodle in maintenance mode. `-m false` does a git update
without upgrading moodle.
fixed  if blocks