removed tailing / on opt dir