Refactor intall script to use generic function for moving files around