Common path part calculation fix (closes #13)