Changed script to handle symlink
Updated binary to handle symlink

Debug mode is broken