Remove 'extern's for three removed variables
Include directory name in error message