Use prolog save_state feature for faster loading

Only recompile the DATR if

1. we don't have a nimrodel image file (Prolog saved state)
2. the latest git commit has changed