Make getlibdirs return an array (or whathever this type is called in perl)