Add option to remove files and directories when searching for commandfiles

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