Refactor home directory script installation