Improve portability of cache file detection for command targets

Several plugins were using the `stat` command to determine modified time in order to determine if cached targets needed to be updated.  This command needed to be different on OS/X than on other OS's.  Using the `[` builtin's `-nt` comparison does this and should be more portable.

The phing task also had some regex's that would remove legitimate targets from completion.