Fix for issue #5.
Added special case for the scripts directory that matches more closely the ZendStudio logic.