Adding routines to get binary execution
location and a couple of fixes.