removed the call of realpath() - for the correct file open in #include enough chdir()