further attempts to get script dir working