Use File.realpath in tests instead of relative paths

This fixes issue #6 .