fixing home dir retrieval and download path setting