Fix the way to get script path