dock:: fix appid problem.

1. fix evoluspencil gets wrong appid.
2. get exec from parent for java program(experimental).