Fix issues with updating the last used directory.
Fix issues with updating the last used directory.

On macOS, at least, the native dialog doesn't seem to update the current folder, so we should instead determine the folder from the filename.

PintaProject/Pinta,PintaProject/Pinta,PintaProject/Pinta