Added a `mkdir -p` call before uploading file(s) in to make sure file directory paths exist before attempting to upload to them.  Changed RequireJs to run as a node module (might not stay this way later).