fix(downloader): out of bound string manipulation in getTargertFile