Only patch if directory exists