Fixed bug applying patch always if definition name matches with patches/name dir.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>