Feature prune: minor tweaks

Use ruby %{} to avoid escaping double quotes, add sed to remove leading
whitespace