EA-1173: Fix build with different git version

Some git version seems to not like wildcards in path so pass wildcards
only to shell.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>