Fix wrong-way boolean on check for reading lookup table file.

Bug found by Rajesh Ganai.

This lookup method is obviously not well tested, tread carefully....