Fix undefine option and dest file at same src folder error