fix for CYCLUS_ROOT_DIR, closes #993
fixed endif
fixed indentation
Merge pull request #994 from scopatz/cycroot

fix for CYCLUS_ROOT_DIR, closes #993