lib/functions: + more reliable function to detect linux distro
install.*.sh: install perl module CGI::Session (for cgit.cgi)

added perl module CGI::Session required by cgit wrapper