Fixing running from deployment directory and debugging.