fix issue w/ determine_inst under certain environment variable setups