Fix bash completion bug

Local file paths containing characters that need to be escaped were not being completed correctly.