LFE: set proper write directory