Fixed branch checking to work when hosted under symlink (mainly for
Vagrant)