changed build script to detect env solution config