more robust checking for bash completion

 - test for existence of Berksfile and cookbooks/ dir
 - tighter, more flexible parsing of Berksfile
   (ignore commented lines, don't assume single quotes, etc)
Merge pull request #951 from invsblduck/master

more robust checking for bash completion