correct path format when editing rule's dir