Fix bug in running main exe when installing globally