I'm testing CloudFoundry on IBM and are running NodeJS.

When trying to `cf push` my application I get the following error:

```
failed: The app upload is invalid: Symlink(s) point outside of root folder

```

In my appllcation I have the following code:

```
return res.sendFile(path.join(__dirname +'/tvshows/'+ guide +'.html'));

```

When not using path.join and simply use:

```
return res.sendFile(path.join('./tvshows/'+ guide +'.html'));

```

I get this error instead:

```
TypeError: path must be absolute or specify root to res.sendFile

```

What to do?

I've also tried stuff like `path.join((process.env.BUILD_DIR || __dirname),` and `return res.sendFile('index.html', { root: path.join(__dirname, 'tvshows', guide) });` but no luck.