readded tfpath check to work with linux