Fix minor syntax errors in cookbook specs

`rake validate_syntax` fails due to a number of small ruby syntax errors
in the cookbooks:

- `opsworks_nodejs` needed a space or method brackets around a couple of
  regex arguments.
- `opsworks_initial_setup/specs/hosts_spec.rb` contained a rogue closing
  tag and an extra `end` statement.
- Specs for php deploy were a bit bung. Haven't run them so don't know
  if they pass, but at least they are valid ruby now.