Fixed issue with watch

script now works as watch task