PUP-2583

Puppet file provider wrongly classifies file as directory. And thus chmod(u+X) adds execute right although it should be only added to directories. This PR should solve this issue.