Restore '#!/usr/bin/env sh' shebang
Update RuleWatchNode.php
Replace dirname call with shell substitution

- faster because it doesn't fork (http://en.wikipedia.org/wiki/Dirname#Performance)
- adds support for Windows paths (e.g. when called via msysgit)

Conflicts:
	src/Composer/Installer/LibraryInstaller.php