cleanup tmpdir, remove unused and already commented out code
fix dir(), panda now runs \o/.  Also change splitpath to use :nofile param