Replace ifeq/else block in lualib.mk with lazily evaluated variable