tidied up environment conditionals in shell

Was cleaning up my branches this morning and realized I forgot to pull this from a while back. Does as the title says, ran o1 and browser.