While here, fix some problems: . find/chmod on dirs must be done with exec, not xargs, since xargs happens too late . do not use ${BUILDLINK_DIR}