build_dir hack