Allow local files to be used for input and export (no more S3 dependency).  Big fixes.