Improve git_trim script