Only run download once per script execution
Make script ready to be run by cronjob
Add script path detection