Fix pull file for iOS

Fixes #3844

Also deals with an issue in which any file could be retrieved from the file system simply by requesting to pull an absolute path (since Node's [path.resolve](http://nodejs.org/docs/latest/api/path.html#path_path_resolve_from_to) only tries to make a full path if it doesn't already have one). The fix handles pulling and pushing of both files and folders.