refactor some git related crap for better readability
temporary workaround for gnu-bash `trap DEBUG` bug