Make detection of LUA_DIR work with nested bin directories