Fixes scripts for any  directory