Revert "Fixed realpath issue"

This reverts commit a2c03cc046db4419f05af572bc927234d35a3a3e.