getopt JAR. Bump PORTREVISION. While here improve various bits a bit and add the regression-test target using the bundled tests.