calculate toplevel directory without git Since Debian source package is not versined in git, the code that calculates toplevel directory depends on sources being in a git source control system, this patch allows for tests to run without this dependency.