test-lib: reorder and include GIT-BUILD-OPTIONS a lot earlier