Minor cleanup; also added lib-gd-path.sh, which I'd forgotten.