VcsManager: Clear topLevel directory when necessary

Clear the topLevelDirectory when being asked to find the version
control system responsible for directory "".

Change-Id: I8806ebff1200f0fc936715ffab94acf1f10cb386
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>