fix to correctly log in the dir specificied by queue launcher