Fixed dirty_state checker in bosh cli and improved tests

* Updated integration tests to use an initialized git repo for
  TEST_RELEASE_DIR
* Removed dirty repo commit hash test from BAT since it's an integration
  test

[#43915403]
fix cli to not overwrite config/final.yml unless it has changed