Fix not saving build command in compile-history