move dependency checking and installation to --install-deps option