Add nil check to any? method. Fixes #510.

Makes :linked_files and :linked_dirs optional.