Move patch-graphics-from-master.pl into maint-bin

This means all our maint utils are in one place.

This commit also updates the code to work in a more location
independent fashion.