bugfix: line information for comments
use realpath in a posix compliant way