fixed order of chroot() and parameter evaluation so that '--version'