Move bash_work sourcing

Source bash_work before detecting if shell is interactive or not