Added sanity checks to user and system file paths in case they don't exist.