fix creation of new project in existing directory
update for node v0.10.x
fix order of variable declarations
remove unused variable
fix variable name collision
fix and simplify bin test