Check if the .chef is a directory instead of just checking basename