Fix .ruby-version file creation for patch level versions of ruby