Added Dirname task

```
<dirname property="foo.dirname" file="foo.txt"/>
```
will set `foo.dirname` to the project's basedir.