create-pr needs to use /bin/sh to work. This PR makes the script posix compliant, replacing any bash specific features with plain sh alternatives