Run CLI specs in isolated environment

Previously, the specs were run in the project directory.
This fixes #119.
Fix odd indentations
Remove unnecessary test directory creation
Change FileHelper#create_file to add line feed to end of file
Refactor CLI specs with FileHelper#create_file