installer: fix *AMP discovery

1. the AMP_PATHS variable wasn't properly initialized, hence `read`
2. the wildcard expansion yielded the php5.2 directory first, so we just
skip it