fixed math function, added mint as distro option and extended globbing