BUG: Avoid using realpath to make list_future_warnings.sh compatible on macosx
…with Mac

- [ ] closes #xxxx
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

thanks!