fixing referance to script dir