Fixes rbenv on OpenBSD and any other systems that don't support head -c