Fix some bugs with paths with spaces and add a filter to avoid reading files with size == 0bytes