Detecting locale with preinstall script