Added version conditonals around on shopt