cleaner method of assigning default to GIT_PREVIOUS_COMMIT var

Signed-off-by: Dave Simons <dave@inuits.eu>