fixed build_dir var for runtime