Added option to flag directories.

This will allow me to push a fix for https://github.com/balderdashy/sails/issues/887 (nested controllers).