add maintainer mode support

`export MAINTAINER_MODE=1` to enable, `unset MAINTAINER_MODE` to disable.