prepend location to generated script so chmod works