Changed checkRemoteFile function to be faster and smaller

This requires that links be public. Forum links appear not to work in testing.