improve ccnputfile and ccngetfile in CCNx