Fixed LFN to below docker detect

Docker detect overrides $log so LFN has to go below that.