Controller name resolver tweaks.
Dir iterator bugfix.