script dir fix