Fix regression from 32a42f2

Substitions does not work with /bin/sh so we have to call /bin/bash
Rebase instead of pull when upgrading

In order to keep local changes and/or prevent conflicts