make sure we're in the right directory before setting some bash variables