When platform has not been detected perl_pkg is nil. Do not try to install perl package.