add missing dependencies
construct File with subpath and basepath
Merge pull request #1 from tomster/master

use base- and subpath for file, add missing dependency