dl.py: fix file overwritten when path is not CWD