Use rpartition instead of partition for icon_file, fixes Windows drive letter issue