Invoke bash directly to detect revision (allows to avoid using some minimal shell...