Fix issue with script linking