Fix tmp paths and cli args