fix installation of scripts.
fix installation of scripts.

using copy() instead of rename() does not preserve previously set permissions,
so scripts were being copied with 0644 - bad


marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core,marcosptf/pear-core