Test for install directory before creating
change sed invocation