[FIX] Build script no longer relies on pip for packages, also checks for gui dependencies and better PATH management