Replace hardcoded download dir with environment variable