latest changes
Use a default directory if no output is specified.