Refactor shell startup files