the script did not work on osx, now it does

using node now to get date 

@TiddoLangerak ready for review