On CentOS there is no lua5.1 binary. Drop the version test and hardcode 5.1 (no point in testing for unsupported versions).