Only add semi-colon when a command isn't empty.