Fixed pre and post install scripts

* Replaced exec with spawn
* Removed Sync write/exists/read
* Added drop_console to the uglify:release