fixed build system to properly output static file