Removed realpath dependency