Correcting script paths