making oozie function portable