Adding more functions (including getParentPath) to common.