Set COMMON_DIR by the relative path and use "--parents" option of cp.