Quoting paths when sending them to open command

Paths with spaces or other naughty things were causing the open to fail.