Merge pull request #21 from adam-vessey/7.x

Use drupal_realpath(), to help ensure that the ftruncate() will work.