Update configure.rb

Update the order of commands. creating parameters file first