dynamic app name detection

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>