Re-doing the symlink test so that the symlink always precedes the symlinked file. See: https://api.drupal.org/comment/5149#comment-5149