fixed bug in HIDE_SOURCELINK/COPY_SOURCES logic