Refactoring generateRobotsTxt in Installer script