Also added an exec to improve performance (which replaces the current process instead of spawning a subshell), and changed the shebang to #!/usr/bin/env as this is best practice.
#22
related to #22