Add debug output, exit on error and replace existing upstart link if it exists