Respect original PATH definitions on install

This is a solution for #1359.