Updated mirror hook to support repos in subdirs.