Correct user-dir slicing on *NIX systems as described in ticket #6