Fix bug with regexp file name, add support for ignoring specified files or directories