Regex to ignore Rake tasks

The Regular expression to restart Rails when files in `config` or `lib` now ignores updated to `lib/tasks` using a RegEx negative look ahead to match "lib not followed by '/tasks'"

I also fixed a couple of failing tests to ensure that the update doesn't break any existing code.