Improved configuration script with default options