Switch from pre_install to prepare_command