added local options
  --test-only: only displays what is being done
  --show-config: displays paths
  for better testing
  fixed bug in pattern