Fix problem if parent and child project have a remote of same name

Need to consider the side effect.