Keyword ebuilds. Use '-C' instead of 'cd'.