Make tests handle extra slashes in directory names