Fix get_file functionality

* to get the right argument when
  parsing arguments
* and return a text that is actually
  obtainable by the function at
  return-time

Signed-off-by: Ozan Safi <ozan@oscorp.se>