script: improve custom commands, fix pkg-config in meson
script: improve custom commands, fix pkg-config in meson

Use relative pkg-config path and add SWITCHDIRBACK to custom commands.
Also use pkg-config relative path in meson as well as add cmake.

DeadSix27/python_cross_compile_script