move clean repos command in case when local_repo used

Change-Id: I8e0a7a0abd3dfefc0416b0157427aef777e2d8b2
Closes-Bug: 1396377