Fix bash syntax in compliance with ShellCheck.net