argv[0] supplies application path, no need to query it.
Authored by: sumolx 2009-12-25
Parent: [r2597]
Child: [r2599]