COMP: Ensure output directory exists

Tweak slicerFunctionAddPythonQtResources to also include a rule to
ensure that the output directory for the resource script exists. This
fixes build errors on non-Ninja clean builds.