Fixed stat/lstat of /contents/{branches,tags,commits}/{name}