Ensure logfile record is stored in the same dir as script