Code update to reflect latest changes in tern.java due to file managment
API reorganization.
Merge pull request #112 from piotrtomiak/file-management-dev

Code update to reflect latest changes in tern.java due to file managment API reorganization.