fixed bug for implementaion of append file in linux platform