Adapt script to path