Performance improvement when providing bundle id

-Fixed https://github.com/jdfwarrior/Workflows/pull/8
-Use getenv("HOME") instead of exec('printf "$HOME"')
-Only execute exec('pwd') when needed