make test.sh detect os to use correct file extension