path should be None if not set. None != ""