Use A to check if A exists? I have a feeling that doesn't always work.

Create a script or whatever to check if qmake exists.