Null checks for times when no console can be found
Removed deprecated references to mavenRepo()
Replaced hardcoded debug file path