prefer ArrayDeque over Stack to avoid synchronized collection
ignore *.orig and *.rej