Fix support for flat format repositories in subdirectories with common pool. #47