Replace getcurpos with getpos to support older Vim

`getcurpos()` wasn't added until 7.4.313 and using it in a fold expression causes silent errors. I replaced it with `getpos('.')` which is no different for this application. This pull request will resolve #503.