fix for entity-file search in GeneratorController

if i have sub directories in Entity directory, method
generateModelAction try to find ALL files under Entity dir., but it
makes wrong namespaces, because use only file's name. It is not a
solution, but it removes error