fix: topup when out_base is a path

closes #927 and #796 

@oesteban  and @rfdougherty : could you try this branch out 

https://github.com/satra/nipype/tree/fix/topup