Added additional "activate" Terminal at end of script to hopefully address the bug that Terminal isn't left as the frontmost app for some users.