Split lib dir and file