use ~ instead of ^ for node 0.8 compability

Fixes #21