Add the directory name from the arguments cgminer was called from as well to allow it running from a relative pathname.