Strange behaviour in directory/drive traversal