Fix rom and save state urls in library when migrating to new version.
Make sure to use valid file names when renaming screenshot files.
Use relative paths for roms, savestates and screenshots.