maintain backwards compatibility with ruby version 1.8.7 


use File.exists? instead of Dir.exists? for 1.8.7 compatibility (1.8.7 is used on the default opsworks version of Ubuntu)
move idempotency into resource def 
add to change log