updated runScript to use npm rebuild command