Add get_shallowest_filepath method to safely select proper Xcode-files.