Fix invalid directory for calling qmake.