Actually, if you "just" want to keep the current path, modern versions of pkexec do have an option for that:
pkexec
pkexec --keep-cwd
Thanks to @Wang, who answered this in another question.