Fix bash-completion support for -C option to expand tilde
Style: Fix inconsistent indentation
Merge pull request #747 from nocnokneo/master

Fix bash-completion support for -C option to expand tilde
Make manifest_parser_perftest build on Windows.
Merge pull request #750 from nico/perfwin

Make manifest_parser_perftest build on Windows.
Support completion of arguments to -f and -C options
Less robust fall-back for when bash_completion not available
Properly fix support for when bash_completion unavailable

This means there will be no -f and -C completion without bash_completion
installed.
Fix getopts barfing over the terminal when trying to complete -f and -C

Note that this is only applicable for when bash_completion is
unavailable.