fix bug to correctly detect nonexistant downloads directory