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 #14681
CPAV_old_PC
build_and_test-win32

00:00:31

passed #14682
CPAV_old_PC
build_and_test-x64

00:00:25