Always define `arg` before the new line detection regarding yaml's `safe_load`

Always define `arg` before the new line detection regarding yaml's `safe_load`.