utils/prepare-mode.sh: add BUILD_MODE=import-force and join some code pathes for less redundancy.