Save mirb history when readline enabled
Use env[USERPROFILE] for Windows
Merge pull request #1390 from kyab/mirb_history

Save mirb history when readline enabled