refactored def verify_module_name_from_puppetfile to def get_module_name