properly resolve master script path
properly resolve master script path