improved directory input processing, made status dir relative to output dir