script dir and fix script paths