Improved license file checking.