Add compatibility with gitsubmodules

When it clone a buildpack repo some of them have git sub module inside so i fix this issue, can be useful for other people