avoiding parameters to be added to whitelist check

This does not work for directory names with whitespace

"/usr/bin/my\ directory/mycommand"