Fix potentially dangerous uses of mkpath and git_path