SciLifeLab/bcbb — pull request #279 by guillermo-carrasco (2013-10-11 14:20:29+00:00)
Title: Invalid cross-device link solved by substituting os.rename by shutil.move

I've encountered these messages in the logs:

```
File "/home/hiseq.bioinfo/.virtualenvs/master/lib/python2.7/site-packages/bcbio_nextgen-1.0_82_g2756ba6-py2.7.egg/bcbio/utils.py", line 400, in merge_demux_results
os.rename(unaligned_dirs[0], 'Unaligned')
OSError: [Errno 18] Invalid cross-device link
```

According to several threads (just google for "os.rename Invalid cross-device link"), os.rename may have problems in mounted/shared partitions, which I didn't realized because I was testing locally.