Fixes paths and leading slashes for instruction files.