Updated the configure script to remove some bugs.

Also renamed the files in scripts/ to be easier and more convenient to type.