updated build and clean scripts to accept the configuration as a parameter