Granular flow down a rough inclined plane: Transition between thin and thick piles