Use resources rather than stray files

This guarantees that the same code works both in .class
and .jar forms.