add {pre,post}_install script support and handle no MODULES