[fix] only allow rebuilding from files