Implement --recorded-root, fixes #1351

A --recorded-root install argument as discussed in #1351.