Using getcleanpath was a mistake. This version goes back to using getabspath.

Unnecessary debug messages were also removed.