passdir: quote vars, use "$()" instead of ``