check if file is regular before tail it