Made the script friendlier to a release build