Allow path environment to have quotes

Fix the function `find_command` to solve issue #2109