Reorder build commands and indent the script properly.