[fix #171] Refactor Rake Detect and Run

Move rake task detection and running to a separate independently tested class.

Compile exits when rake tasks cannot be successfully detected with error message