correctly dispose splash screen with -i, fixed a problem with relative script pathnames