extend build_dir test in a way that I think should work but doesn't