Keep URL whole. Fixes #590
join URL. Fixes #509
Update nzbToMediaUtil.py

attempt to catch exception. Fixes #590
Allow custom logfile from env. Fixes #592
Add LOG_DIR to global. #592