ext/filemagic/filemagic.c (::path): Expose magic_getpath.
lib/filemagic.rb (::magic_version): Extracted from test file.