added trailingslashit to if statements for install type.