anchor.diff:        COMMAND="$2"
         shift 2
   
  -      # Do not use su, to avoid creating a new process
  -      exec chroot --userspec ${APP_USER}:${APP_GROUP} / sh -c "
  -        . ${DEFAULT_FILE}
  -        cd ${HOME}
  -        if [ -f vendor/pkgr/processes/${COMMAND} ]; then
  -          exec \"vendor/pkgr/processes/${COMMAND}\" ${*};
  -        else
  -          exec \"${COMMAND}\" ${*};
  -        fi
  -      "
  +      runnable=$(echo -n "cd ${HOME} && exec")
  +
  +      if [ -f "${HOME}/vendor/pkgr/processes/${COMMAND}" ]; then
  +        # Command alias defined in Procfile
  +        runnable="${runnable}$(printf " %q" "vendor/pkgr/processes/${COMMAND}" "$@")"
  +      else
  +        # Everything else.
  +        #
  +        # We're going through printf to preserve quotes in arguments. See
  +        # <http://stackoverflow.com/questions/10835933 /preserve-quotes-in-
  +        # bash-arguments>.
  +        runnable="${runnable}$(printf " %q" ${COMMAND} "$@")"
  +      fi
  +
  +      # Do not use su, to avoid creating a new process. Note: chroot version
  +      # is too old on Ubuntu Lucid, so this will fail. It works on Debian
  +      # Squeeze though (and later).
  +      exec chroot --userspec ${APP_USER}:${APP_GROUP} / sh -c "$runnable"
   
         break ;;
   
  
positive.code: 
  DEFAULT_FILE=/etc/default/<%= name %>
  
  # Source all environment variables for the app
  . ${DEFAULT_FILE}
  
  # Returns the type of process manager supported by the current distribution.
  
negative.code:   echo "${init_system}"
  }
  
  # You can force a specific process manager by setting the PROCESS_MANAGER
  # environment variable.
  PROCESS_MANAGER=${PROCESS_MANAGER:=$(process_manager)}
  
  function current_number_of_processes() {
  