Updated shell script

Now it can be used with Keyboard Maestro instead of needing a separate
one.