Use long form options for configure.sh commands that require root

This makes it easier to understand what the script is doing (see discussion on #1132)

This pull request also includes all the work from #1133, which has modified the configure.sh script, so as to avoid merge conflicts.