function to add fieldtrip paths
function to determine root directory