Modified to exclude match on libs folder

Libs folder is found in some php installs, such as Piwik.  These need to be copied into htdocs in order to work correctly.  Modified the regex match which was greedily matching for both lib and libs to ignore libs.