Add build hook script, fix browser launch and resolve browser refresh on file change