Auto-create gem directory

Closes #1.