fix file detection for receiving over stdin