harden process for finding default file