Bugfix for ticket #2370

ShellCommand now checks validity of args during config rather than during the build. Added unit test and release note for the same.