git state: use cross-platform path seperator

use `os.path.join` instead of a format string