Add location customiser to fix broken sudo/tty behaviour.
This closes #209