fixed bug in lua loader: functions with empty body were not respected as valid commands (did not get into the list of exported functions because a heuristic mismatch)