Don't rely on prog.Name for paste app

Relying on the name of the program breaks packagers who need to move
glance executables around to other locations on the file system.

Fixes bug 1194987

Change-Id: I7721c5181b17b1f34adc279c055dfff5d17b57e5
Merge "Don't rely on prog.Name for paste app"