When the file is in the current working directory, stream->path points the path user passed as arg, so it may or may not include './'. Strip it from both to make the comparison work Fixes: c201c4874d
c201c4874d