Handle the "--exclude" option correctly, #152 and #160