Removed arbitrary dir size restriction at the expense of portability to
linux.