Switch to env to detect bash path to make the script more portable.
Check if selection is empty and only run pass if we selected a password.