Resolves #841. Log an error when the path is '.'