CheckIntegrity now throws exception instead of returning false

Added the path prefix to simulator. Now use path prefix when creating
file objects.