fixed sed script to handle the pesky / char in paths