Update write_version.f90 to match new hawc2 call

2 jobs for patch-2 in 57 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed build_and_test-win32 #14681
CPAV_old_PC

00:00:31

passed build_and_test-x64 #14682
CPAV_old_PC

00:00:25