fix build_dir variable