Add option to exclude files and directories when searching for commandfiles

See: https://drupal.org/node/2191327 for background.