Check .cake format

- Check whether cake and build_path exist
Add test to validate .cake file