[PLXCOMP-117/PLXCOMP-64/PLXCOMP-113] Symlink support

Based on patch Zuhayr Khan, heavily modified and extended by me