Added paths lib to take care of globs.
Converted PHP tasks to path lib.