Fixing filename validation performance regression in launch configuration

isValid is called on every keystroke, e.g. when inserting command-line parameters. This change fixes creation of monstrous string arrays for comparing with a single filename.