Make home directories work on windows again

Ticket: #7138