updated logext to default to user folder/directory if available; else cwd