record.js: use Gio.File.prototype.get_path

As per Sebastian Dröge's suggestion.