Only use overwrite option when available

The overwrite option was only introduced in Mongoid 4.
This change keeps it compatible with Mongoid 3.
Version Bump 5.0.1
5.0.1 Changelog notes.