Use a pipe to avoid a potentially big sql file

Use a pipe to route output of raster2pgsql to psql client in order to
avoid a potentially big temporary sql file (in some tests, about 12GB).
This should fix #1492 

@Kartones can you please review?