Update path completions check for paths with spaces