Streamlined the detection and handling of the symlink error (related to #284 and #287).