Added check for environment to run livereload script