> Does this work for bash shells?

No, of course not.  My comment made no sense, please disregard.

Maybe the right thing is just to set an explicit variable to '2.7_with_system_site_packages' and use it in both places.  But it's probably fine as is.