added debug as env var, fixed the output from rake ENSURE
fix files