NXP-15865: modules are not always Git repos

Replace system_recurse("git ...") with git_recurse("...")
Contrary to system_recurse, git_recurse will only be executed on Git repositories