title: Current working directory being pre-pended to to import statement, breaking the path
body: <p>I'm attempting to setup my own custom build script to build a release version of my Android app.  The project root build.xml file generated by Android SDK works as expected and produces a release build.  What I'm trying to do now is write other custom build scripts which call this build.xml file after doing some pre and eventually post processing.  I don't wish to modify the build.xml script.  The scripts look like this:</p>
  
  <p>MyCustomScript1.xml imports .../MyAndroidProjectRoot/build.xml like this:</p>
  
  <pre><code>&lt;import file="../build.xml"/&gt;
  </code></pre>
  
  <p>This project root build.xml file in turn imports the build.xml file from the tools directory of the SDK like this:</p>
  
  <pre><code>&lt;import file="${sdk.dir}/tools/ant/build.xml" /&gt;
  </code></pre>
  
  <p>However my problem is that the import is failing (as denoted by a warning message in MyCustomScript1.xml build.xml import statement) with this message:</p>
  
  <blockquote>
    <p>Cannot find /home/cknight/workspace/application/MyAndroidProjectRoot/${sdk.dir}/tools/ant/build.xml imported from  /home/cknight/workspace/applicatoin/MyAndroidProjectRoot/build.xml</p>
  </blockquote>
  
  <p>I cannot access the targets in the skd buld.xml file from MyCustomScript1.xml</p>
  
  <p>Why is the current working directory being pre-pended to the import statement in the project root build.xml file and how can I fix this?</p>