Fix bash-completion support for -C option to expand tilde

This fixes broken exansion when using -C option with directory paths like ~/foo/bar