fix script paths and executables after allowing forks