Use Rails.root to run NodeJS command