For sugar CRM 6.5, module list wasn't working, so i changed the way modules are obtained