update common.sh to revert os override feature