MODULES-1476: Fix noisy facter if update-notifier is not installed

Moves file executable test block around the entire script so that we avoid errors if update-notifier is not installed.

https://tickets.puppetlabs.com/browse/MODULES-1476