Also parse rev from branch/tag, otherwise fetchgit will break