Fix some issues with File and install_prefix.

Adding the install_prefix as an attribute seems to caused a few problems
where we now need to use ::File instead of File in provider.