Fix sed invocation
Add var initialization