build,qt: Simplify check for moc
m4/qt6.m4: Remove alternative checks for moc that were taken over from