Why `cd` around when your vcs_cmd() handles looking into $1 for you?