Fixes #3487: avoid errors in rpm package installation because of patch command