fixed: extra space between dir and file
fixed: optimised release and version extraction to be more accurate.