Fix build_dir setup