Created a function to escape strings for RegExp & used it to escape 'filemanager_path' variable.