Added --version switch handling