Update to last typescript version
Don't crash on incorrect file reference