You could ask him which way the other guy will tell you to go.
If you ask the guy who tells the truth, he will tell you the way the liar would tell you, so you would have to go the other way.
If you ask the guy who lies, he will tell you the opposite to which way the truth-teller would tell...