install.run: move ifs to the end