fix a "Variable declared in conditional statement" error

Found problem after running
perlcritic -s Variables::ProhibitConditionalDeclarations
define PERL_TEST_DISTRIBUTION_OPTS for private test-distribution target
add .travis.yml
tests: use fixed mainwindow position (for twm)