Revert "Change default workflow filename to graph.json in hflow util so it would be ok with SPEC.md."

This reverts commit bf951b654aa9a8dc38e29350086b8a4972d32eb0.
Reintroduce chdir in function finding and fix function name auto discovery.