MDL-65453 core: fix behaviour of --skip-database option on install