The puppetlabs-stdlib module has provided the type to validate input
for file mode since 4.22.0 . Use that type definition to validate
inputs at parameter input layer, instead of internal implementation
layer.
Change-Id: I46df56b9cc25f0dfa0129b2c50546a2f1f7f6b3f