fix build_static_file