Use full path instead of only the filename

$file only contains the filename and not the absolute path, that means that files in a subdirectory will not get properly resolved and an empty filesize is returned.

This feature only exists on master. - I'll investigate if I can write an unit test for that. 

@PVince81 As discussed