Fix possible NULL pointer dereference in get_jail_exit().
Fix path filtering in utility scripts.
Fix possible memory leak in load_picture_from_pack().