Fixed issue #1642: Incorrect behavior if repo is located on root of drive