Fix determine home and pics dir for Windows