There is already a method on the ILiferayRuntime that you can use to get the deployDir.  ILiferayRuntime.getAppServerDeployDir()