Move generic variables to bash

Signed-off-by: Michael Barton <mail@michaelbarton.me.uk>