Updated pre-install to not use __FILE__ which does not respect symlinks

Needed for the new architecture which uses symlinks.