Updated the clone script implementation.

Signed-off-by: Alexandru.Vaduva <vaduva.jan.alexandru@gmail.com>