You should ideally manage the paths using ODI topology File technology.
Define file dataserver and define a root path underneath it.
In your code you can refer the path as <%odiRef.getSchemaName("FILE_PHY_TECH")%> where FILE_PHY_TECH is a physical schema defined in topology.
Thanks actdi, this is exactly what I need! I was not aware of this function...