fix ignore mechanics

module will be ignored for reload if ignore string appear in directory
name instead of full filename.