Smarter `head` to handle Maven convension