[CB-8044] updated run script to properly handle --nobuild flag in all cases