correcting dir path