Trim paths when installing OS packages