I'm glad you solved it while I was fighting with my VM to get it to execute commands in a terminal with directories that had spaces in their names. None of the usual Linux/Windows methods of surrounding the paths with quotes would work!
But at least I learned something new about Macs.