fix  script self name and dir variables