Use dirname instead of an POST_RECEIVE_TRAC environment variable.