Fix shell command in "if-shell" returns exit code 127
Fix shell command in "if-shell" returns exit code 127

In if-shell command, shell commands runs by "sh".
Shell built-in command "[[" is not yet implemented to "sh" and thus if-shell command always fails unexpectedly.

Rewrite the pattern matching by using "[" and shell substitution to be able to handle correctly.

curipha/dotfiles