screenshot: fallback to $HOME if cwd is not writable

Note: not sure about that access() syscall. There is probably a more mplayer-ry way of doing that and I'm happy to replace it with that way :)