Added function read_profile()
Declared constant for tmpfile name template
Constant DEBUG defined during build
Working directory removed recursively
Disable STDERR tests in DEBUG mode