make detect better understand filetype

Hi,
Please check my fix.
Main differences with previous are:
1) Use not hardcoded chef-repo folder, because we use chef instead chef-repo folder
2) newer version will work even if you do following
  cd chef-repo/cookbooks/mysql/
  vim recipes/default.rb
because it checks full path to file ( expand('%:p'))

Thank you,
Alexey