Use a relative path (../..) instead of /sys. Enhance the sed expression to work with .'s in paths. Quote sed expressions in single quotes rather than double quotes unless there's a good reason otherwise.