Only add path to message if there is one