Added a check for the configuration around the build script such that it only runs on Debug