Adding code to fetch from the remote if no local develop or master is
found. The reason for this is that TeamCity only does a fetch on the
branch to build when performing the VCS checkout.