Update test cases to use getCanonicalPath ( backport of twall/jna#306 )