Warn if path is not a string