Fixes extension list / enable /disable issues.

Fixes `phpbrew ext` `phpbrew ext [enable|disable]` not working correctly when extension source codes and config.m4 not in it's root directory.

Not 100% sure what you were talking about, but yes, that code should be refactored. :)