Fixed repositories mirroring script

Change-Id: I3fe44c11af3e3c09b01f5719436431bff94dcb06