Simplify cwd slice and handle dirs with whitespace
Simplify cwd slice and handle dirs with whitespace

- handle correctly dirs with whitespace
- don't use shell arrays
- take in account dir_limit input parameter

Fix #6

jmartiuk5/promptline.vim,nekonyuu/promptline.vim,edkolev/promptline.vim