added function to get calling script path from the dir