Error file now has basename of the script, while setting logging dir