fix debugger problem with long PATH
PATH buffer is now allocated dynamicaly
function Envlkup is checking required PATH buffer length if maximal length parameter is zero