Fix of wrong stats of pistol's ammo on HUD

...when player holds nade and akimbo disappears.
To test the bug: take akimbo, take grenade, press "g"  and wait for akimbo disappearing.
Then stats on HUD shows, that player has pistol with 0 ammo, instead of full magazine.
fix: convert xmap path names for windows

* make sure, unsaved edits only count in editmode (otherwise "watercolour"
  in map configs would already be "edits")

* nicer filenames for backup-xmaps

* catch failed xmap file write access

* unsavededits is now flag (!= 0) and counter - to enable scripts to
  detect "new edits".

new commands:

xmap_delete_backup    deletes the backup xmap

xmap_keep_backup    moves the backup xmap to a regular named spot

xmap_rename    changes the nickname of an xmap
fix: allow creating directories without homedir

With this fix, ac can also create directories relative to the working
directory. This fixes xmaps for users without homedir set.
removed now redundant code

and substituted "copy file and delete original" with "move file"
fix: show intermission after demo playback

thx jamz :)