fixup permissions, add rbenv rehash where needed