Fix bash completion bug

Local file paths that contained characters that require escaping were not being
completed correctly.