improve performance by compiling the OEMASK regexp out of the loop
drwxr-xr-x - bin
drwxr-xr-x - contrib
drwxr-xr-x - doc