added file_exists/1 task
moved tasks from flow to tasks library
added WRF em_real target and build_type detection