corrected path normalizer, and simlifier

for example. if we used path /home/projects/payprocessing.eve/accountant/views/site/../include/menu.html
and /home/projects/payprocessing.eve/accountant/views/site does not exist, but
/home/projects/payprocessing.eve/accountant/views/include/menu.html exist.
Unix doesn't find the file. Normalize them