Made update_snippets.rb independent of running directory