Use cookbook_path accessor instead of instance variable in syntax_check