bash environment setup utility scripts castle