Fix getCurrent to work with folder and files with '.' in his names.

I have a trouble when try to use folder with '.' in name. After search I found that problem is in this function getCurrent() from helpers. Simple realization not allow dots in file or folder name except file extension. This patch solve problem.