mark directories in the file listing as such. fixes #10
use Abs to get the absolute path