Fixing logging and output directory slashes