fixes error message when directory access fails

adds simple tiny test suite and updates license headers

(0) -30 -10 -2 +2 +10 tip

mercurial