Fixed LocalFileSysImpl so that output folder cleanup works in all cases,