exit cli when chrome app quits
use path.resolve, removed global. closes #5