Fixed repositories mirroring script

Change-Id: I7eabf0b5465fc4072ae75393a6ab4fefc268fa63