Place `getopts` shift statement at correct place

Was failing in case of space separated opts

Signed-off-by: Rohan Jain <crodjer@gmail.com>
Fix indentation for while loop

We use 4 spaces.

Signed-off-by: Rohan Jain <crodjer@gmail.com>
Support for excluding file patterns

Signed-off-by: Rohan Jain <crodjer@gmail.com>