Revert ". and .. aren't always at the top of Dir.foreach in some filesystems"

This reverts commit 414372a1d97a20eedaf8a9589c0c41885ad07d27.

Reason: grep was also broken
Be sure to always put . and .. at the top of the list