fixed file watching and building for mac