Wrapping keychain and max_user_watches in bash if statements to avoid
unneccessary password entry