Workaround for PATH variables on non-Debian distributions.
On non-Debian distributions, the PATH variable might set differently, leading to the post-install script not working with errors about command not found inside the chroot environment.
This PR is a workaround for that issue, through I'd recommend a even better way to workaround this.